const DeviceManage = resolve => require(['./deviceManage/DeviceManage.vue'], resolve)
const DeviceStatus = resolve => require(['./deviceStatus/DeviceStatus.vue'], resolve)
const DeviceChange = resolve => require(['./deviceChange/DeviceChange.vue'], resolve)
const DeviceBox = resolve => require(['./packBox/DeviceBox.vue'], resolve)
const DeviceChangeP = resolve => require(['./deviceChange/DeviceChangeP.vue'], resolve)
const SearchBox = resolve => require(['./deviceManage/searchBox.vue'], resolve)

const router = [
    {
        path: '/device/manage',
        component: DeviceManage,
        meta: {
            position: [
              {name: '设备管理'},
              {name: '仓库管理', path: '/device/manage'},
            ]
          }
    },
    {
        path: '/device/status',
        component: DeviceStatus,
        meta: {
            position: [
              {name: '信息展示'},
              {name: '设备信息', path: '/device/status'},
            ]
          }
    },
    {
        path: '/device/change',
        component: DeviceChange,
        meta: {
            position: [
              {name: '设备管理'},
              {name: '设备变更(B端)', path: '/device/change'},
            ]
          }
    },
    {
      path: '/device/packbox',
      component: DeviceBox,
      meta: {
          position: [
            {name: '设备管理'},
            {name: '二次装箱', path: '/device/packbox'},
          ]
        }
    },
    {
      path: '/device/changeperson',
      component: DeviceChangeP,
      meta: {
          position: [
            {name: '设备管理'},
            {name: '设备变更(C端)', path: '/device/changeperson'},
          ]
        }
  },
  {
    path: '/device/search',
    component: SearchBox,
    meta: {
        position: [
          {name: '设备管理'},
          {name: '箱号查询', path: '/device/search'},
        ]
      }
},
]

export default {
    router
}
